<template>
    <div style="height: 100%; position: relative">
        <el-drawer
			:title="title"
            :before-close="handleClose1"
            :visible.sync="show_dialog1"
            direction="rtl"
			size="88%"
            ref="detail"
            class="head-box"
        >
            <div class="demo-drawer__content addstore">
                <el-form :model="form" ref="form" id="form">
                    <div>
                        <div class="main-title">主体类型:</div>
                        <el-form-item
                            :label-width="formLabelWidth"   
                            prop="organization_type">
                            <span class="start">*</span>
                            <span>主体类型：</span>                            
                            <el-select v-model="form.organization_type" placeholder="请选择" disabled>
                                <el-option
                                v-for="item in mainlist"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <div  v-if="form.organization_type == 4||form.organization_type == 2||form.organization_type == 3||form.organization_type == 1708">
                        <div class="main-title">营业执照/登记证书信息:</div>
                        <el-form-item 
                            :label-width="formLabelWidth">
                            <span class="start">*</span>
                            <span>证件扫描件：</span> 
                            <br>  
                            <el-image
                            v-if="form.business_license_info.business_license_copy.url"
                            style="width: 100px; height: 100px"
                            :src="form.business_license_info.business_license_copy.url"
                            :preview-src-list="[form.business_license_info.business_license_copy.url]"
                            fit="fill"></el-image>                                                       
                        </el-form-item>    
                        <div>
                        </div>                     
                        <el-form-item
                            :label-width="formLabelWidth"  
                            prop="business_license_info.business_license_number">
                        <span class="start">*</span>
                        <span>证件注册号：</span>
                            <el-input
                                v-model="form.business_license_info.business_license_number"
                                autocomplete="off"
                                autosize
                                
                            ></el-input>                           
                        </el-form-item>
                        <el-form-item
                            prop="business_license_info.merchant_name"
                            :label-width="formLabelWidth">
                        <span class="start">*</span>     
                        <span>商户名称：</span>
                            <el-input
                                v-model="form.business_license_info.merchant_name"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="business_license_info.legal_person">
                        <span class="start">*</span>     
                        <span>经营者/法人代表人姓名：</span>
                            <el-input
                                v-model="form.business_license_info.legal_person"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="business_license_info.company_address">
                        <span class="start">*</span>    
                            <span>注册地址：</span>
                            <el-input
                                v-model="form.business_license_info.company_address"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>  
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="business_license_info.business_time">
                        <span class="start">*</span>    
                            <span>营业期限：</span>
                            <el-input
                                v-model="form.business_license_info.business_time"
                                autocomplete="off"
                                
                            ></el-input>                           
                        </el-form-item>                          
                        </div>
                        <div v-if="form.business_license_info.business_license_number&&form.business_license_info.business_license_number.length!=18">
                        <div class="main-title">组织机构代码证信息:</div>  
                        <el-form-item 
                            :label-width="formLabelWidth"
                            prop="organization_cert_info.organization_copy">
                            <span class="start">*</span>
                            <span>组织机构代码证照片：</span>
                            <br>
                            <el-image
                            v-if="form.organization_cert_info.organization_copy.url"
                            style="width: 100px; height: 100px"
                            :src="form.organization_cert_info.organization_copy.url"
                            :preview-src-list="[form.organization_cert_info.organization_copy.url]"
                            fit="fill"></el-image>                             
                        </el-form-item>                                                                       
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="organization_cert_info.organization_number">
                            <span class="start">*</span>
                            <span>组织机构代码：</span>
                            <el-input
                                v-model="form.organization_cert_info.organization_number"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="organization_cert_info.organization_time">
                            <span class="start">*</span>
                            <span>组织机构代码有效期：</span>
                            <el-input
                                v-model="form.organization_cert_info.organization_time"
                                autocomplete="off"
                                
                            ></el-input>                            
                        </el-form-item> 
                        </div> 
                        <div class="main-title">经营者/法人证件类型:</div>
                        <el-form-item
                            :label-width="formLabelWidth"    
                            prop="id_doc_type">
                            <span class="start">*</span>
                            <span>经营者/法人证件类型：</span>                            
                            <el-select v-model="form.id_doc_type" placeholder="请选择" disabled>
                                <el-option
                                v-for="item in Certificate"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>  
                        <div v-if="form.id_doc_type == 'IDENTIFICATION_TYPE_MAINLAND_IDCARD'">
                        <div class="main-title">经营者/法人身份证信息:</div>
                        <el-form-item 
                            :label-width="formLabelWidth"
                            prop="id_card_info.id_card_copy">
                            <span class="start">*</span>
                            <span>身份证人像面照片：</span>
                            <br>
                            <el-image
                            v-if="form.id_card_info.id_card_copy.url"
                            style="width: 100px; height: 100px"
                            :src="form.id_card_info.id_card_copy.url"
                            :preview-src-list="[form.id_card_info.id_card_copy.url]"
                            fit="fill"></el-image>                             
                        </el-form-item> 
                        <el-form-item 
                            :label-width="formLabelWidth"
                            prop="id_card_info.id_card_national">
                            <span class="start">*</span>
                            <span>身份证国徽面照片：</span>
                            <br>
                            <el-image
                            v-if="form.id_card_info.id_card_national.url"
                            style="width: 100px; height: 100px"
                            :src="form.id_card_info.id_card_national.url"
                            :preview-src-list="[form.id_card_info.id_card_national.url]"
                            fit="fill"></el-image>                             
                        </el-form-item>                                                                                            
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="id_card_info.id_card_name">
                            <span class="start">*</span>
                            <span>身份证姓名：</span>
                            <el-input
                                v-model="form.id_card_info.id_card_name"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="id_card_info.id_card_number">
                            <span class="start">*</span>
                            <span>身份证号码：</span>
                            <el-input
                                v-model="form.id_card_info.id_card_number"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="id_card_info.id_card_valid_time">
                            <span class="start">*</span>
                            <span>身份证有效期限：</span>
                            <el-input
                                v-model="form.id_card_info.id_card_valid_time"
                                autocomplete="off"
                               
                            ></el-input>                           
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="id_card_info.id_card_valid_time_begin">
                            <span class="start">*</span>
                            <span>身份证有效期开始时间：</span>
                            <el-input
                                v-model="form.id_card_info.id_card_valid_time_begin"
                                autocomplete="off"
                               
                            ></el-input>                           
                        </el-form-item>                         
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="id_card_info.id_card_address">
                            <span class="start">*</span>
                            <span>身份证居住地址：</span>
                            <el-input
                                v-model="form.id_card_info.id_card_address"
                                autocomplete="off"
                               
                            ></el-input>                           
                        </el-form-item>                                                  
                        </div>
                        <div v-if="form.id_doc_type == 'IDENTIFICATION_TYPE_OVERSEA_PASSPORT'||form.id_doc_type == 'IDENTIFICATION_TYPE_MACAO'||form.id_doc_type == 'IDENTIFICATION_TYPE_HONGKONG'||form.id_doc_type == 'IDENTIFICATION_TYPE_TAIWAN'">
                        <div class="main-title">经营者/法人其他类型证件信息:</div>
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="id_doc_info.id_doc_name">
                            <span class="start">*</span>
                            <span>证件姓名：</span>
                            <el-input
                                v-model="form.id_doc_info.id_doc_name"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>  
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="id_doc_info.id_doc_number">
                            <span class="start">*</span>
                            <span>证件号码：</span>
                            <el-input
                                v-model="form.id_doc_info.id_doc_number"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>
                        <el-form-item 
                           :label-width="formLabelWidth"
                           prop="id_doc_info.id_doc_copy">
                            <span class="start">*</span>
                            <span>证件照片：</span>
                            <br>
                            <el-image
                            v-if="form.id_doc_info.id_doc_copy.url"
                            style="width: 100px; height: 100px"
                            :src="form.id_doc_info.id_doc_copy.url"
                            :preview-src-list="[form.id_doc_info.id_doc_copy.url]"
                            fit="fill"></el-image>                             
                        </el-form-item>                        
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="id_doc_info.doc_period_end">
                            <span class="start">*</span>
                            <span>证件结束日期：</span>
                            <el-input
                                v-model="form.id_doc_info.doc_period_end"
                                autocomplete="off"
                               
                            ></el-input>                           
                        </el-form-item> 
                        </div>
                      </div>  
                      <div>      
                        <div class="main-title">结算银行账户:</div>                  
                        <el-form-item
                            :label-width="formLabelWidth"       
                            prop="need_account_info">
                            <span class="start">*</span>
                            <span>是否结算银行账户：</span>                            
                            <el-select v-model="form.need_account_info" placeholder="请选择" disabled>
                                <el-option
                                v-for="item in accountlist"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <div v-if="form.need_account_info==true">
                        <el-form-item
                            :label-width="formLabelWidth"    
                            prop="account_info.bank_account_type">
                            <span class="start">*</span>
                            <span>账户类型：</span>                            
                            <el-select v-model="form.account_info.bank_account_type" placeholder="请选择" disabled>
                                <el-option
                                v-for="item in banktype"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>  
                        <el-form-item
                            :label-width="formLabelWidth"    
                            prop="account_info.account_bank">
                            <span class="start">*</span>
                            <span>开户银行：</span>                            
                            <el-select v-model="form.account_info.account_bank" placeholder="请选择" disabled>
                                <el-option
                                v-for="item in banklist"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="account_info.account_name">
                            <span class="start">*</span>
                            <span>开户名称：</span>
                            <el-input
                                v-model="form.account_info.account_name"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth">
                            <span class="start">*</span>
                            <span>开户银行省市编码：</span>
                            <!-- <el-col :span="4"> -->
                            <el-form-item
                            prop = "province_code">
                                <el-select v-model="province_code" placeholder="请选择省" value-key="index"  disabled>
                                <el-option v-for="(item, index) in addresslist" :key="index" :label="item.region_name" :value="index"></el-option>
                                </el-select>
                            </el-form-item>
                            <!-- </el-col> -->
                            <!-- <el-col :span="4"> -->
                            <el-form-item v-if="province_child!=''&&province_child!=undefined"
                                prop="city_code">
                                <el-select v-model="city_code" placeholder="请选择市"  disabled>
                                <el-option v-for="(item, index) in  province_child" :key="item.national_code" :label="item.region_name" :value="index"></el-option>
                                </el-select>
                            </el-form-item>
                            <!-- </el-col> -->
                            <!-- <el-col :span="4" > -->
                            <el-form-item v-if="city_child!=''&&city_child!=undefined"
                                prop="account_info.bank_address_code">
                                <el-select v-model="form.account_info.bank_address_code" placeholder="请选择区域"  disabled>
                                <el-option
                                    v-for="item in city_child"
                                    :key="item.national_code"
                                    :label="item.region_name"
                                    :value="item.national_code"
                                ></el-option>
                                </el-select>
                            </el-form-item>
                            <!-- </el-col> -->
                        </el-form-item>          
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="account_info.bank_branch_id">
                            <span class="start">*</span>
                            <span>开户银行联行号：</span>
                            <el-input
                                v-model="form.account_info.bank_branch_id"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="account_info.bank_name">
                            <span class="start">*</span>
                            <span>开户银行全称(含支行)：</span>
                            <el-input
                                v-model="form.account_info.bank_name"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="account_info.account_number">
                            <span class="start">*</span>
                            <span>银行帐号：</span>
                            <el-input
                                v-model="form.account_info.account_number"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        </div>
                        <div class="main-title">超级管理员信息:</div>
                        <el-form-item
                            :label-width="formLabelWidth"        
                            prop="contact_info.contact_type">
                            <span class="start">*</span>
                            <span>超级管理员类型：</span>                            
                            <el-select v-model="form.contact_info.contact_type" placeholder="请选择" disabled>
                                <el-option
                                v-for="item in contactlist"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <el-form-item
                            :label-width="formLabelWidth"        
                            prop="contact_info.contact_id_doc_type"
                            v-if="form.contact_info.contact_type==66">
                            <span class="start">*</span>
                            <span>超级管理员证件类型：</span>                            
                            <el-select v-model="form.contact_info.contact_id_doc_type" placeholder="请选择" disabled>
                                 <el-option
                                v-for="item in Certificate"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value">
                                </el-option>
                            </el-select>
                        </el-form-item>                        
                        <el-form-item 
                            :label-width="formLabelWidth"
                            prop="contact_info.contact_id_doc_copy" v-if="form.contact_info.contact_type==66">
                            <span class="start">*</span>
                            <span>超级管理员证件正面照片：</span>
                            <br>
                            <el-image
                            v-if="form.contact_info.contact_id_doc_copy"
                            style="width: 100px; height: 100px"
                            :src="form.contact_info.contact_id_doc_copy.url"
                            :preview-src-list="[form.contact_info.contact_id_doc_copy.url]"
                            fit="fill"></el-image>                             
                        </el-form-item> 
                        <el-form-item 
                            :label-width="formLabelWidth"
                            prop="contact_info.contact_id_doc_copy_back" v-if="form.contact_info.contact_type==66">
                            <span class="start">*</span>
                            <span>超级管理员证件反面照片：</span>
                            <br>
                            <el-image
                            v-if="form.contact_info.contact_id_doc_copy_back"
                            style="width: 100px; height: 100px"
                            :src="form.contact_info.contact_id_doc_copy_back.url"
                            :preview-src-list="[form.contact_info.contact_id_doc_copy_back.url]"
                            fit="fill"></el-image>                             
                        </el-form-item>
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="contact_info.contact_id_doc_period_begin" v-if="form.contact_info.contact_type==66">
                            <span class="start">*</span>
                            <span>超级管理员证件有效期开始时间：</span>
                            <el-input
                                v-model="form.contact_info.contact_id_doc_period_begin"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="contact_info.contact_id_doc_period_end" v-if="form.contact_info.contact_type==66">
                            <span class="start">*</span>
                            <span>超级管理员证件有效期结束时间：</span>
                            <el-input
                                v-model="form.contact_info.contact_id_doc_period_end"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>                                                 
                        <el-form-item 
                            :label-width="formLabelWidth"
                            prop="contact_info.business_authorization_letter" v-if="form.contact_info.contact_type==66">
                            <span class="start">*</span>
                            <span>业务办理授权函：</span>
                            <br>
                            <el-image
                            v-if="form.contact_info.business_authorization_letter"
                            style="width: 100px; height: 100px"
                            :src="form.contact_info.business_authorization_letter.url"
                            :preview-src-list="[form.contact_info.business_authorization_letter.url]"
                            fit="fill"></el-image>                             
                        </el-form-item>                                                                        
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="contact_info.contact_name">
                            <span class="start">*</span>
                            <span>超级管理员姓名：</span>
                            <el-input
                                v-model="form.contact_info.contact_name"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>   
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="contact_info.contact_id_card_number">
                            <span class="start">*</span>
                            <span>超级管理员身份证件号码：</span>
                            <el-input
                                v-model="form.contact_info.contact_id_card_number"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="contact_info.mobile_phone">
                            <span class="start">*</span>
                            <span>超级管理员手机：</span>
                            <el-input
                                v-model="form.contact_info.mobile_phone"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>   
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="contact_info.contact_email">
                            <span class="start">*</span>
                            <span>超级管理员邮箱：</span>
                            <el-input
                                v-model="form.contact_info.contact_email"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>  
                        <div class="main-title">店铺信息:</div>    
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="sales_scene_info.store_name">
                            <span class="start">*</span>
                            <span>店铺名称：</span>
                            <el-input
                                v-model="form.sales_scene_info.store_name"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="sales_scene_info.mini_program_sub_appid"
                            >
                            <span>APPID：</span>
                            <el-input
                                v-model="form.sales_scene_info.mini_program_sub_appid"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="merchant_shortname">
                            <span class="start">*</span>
                            <span>商户简称：</span>
                            <el-input
                                v-model="form.merchant_shortname"
                                autocomplete="off"
                               
                            ></el-input>
                        </el-form-item>                         
                        </div>
                        <div>  
                        <div class="main-title">补充信息:</div>  
                        <el-form-item 
                            v-if="form.qualifications"
                            :label-width="formLabelWidth">
                            <span>特殊资质：</span>
                            <br>
                            <el-image
                                    v-for="(item, index) in form.qualifications"
                                     :key="index"
                                    style="width: 100px; height:100px"
                                    :src="item.url"
                                    :preview-src-list="[item.url]"
                                    >
                            </el-image>
                        </el-form-item>
                        <el-form-item 
                            v-if="form.business_addition_pics"
                            :label-width="formLabelWidth">
                            <span>补充材料：</span>
                            <br>
                            <el-image
                                    v-for="(item, index) in form.business_addition_pics"
                                    :key="index"
                                    style="width: 100px; height:100px"
                                    :src="item.url"
                                    :preview-src-list="[item.url]"
                                    >
                            </el-image>                            
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="business_addition_desc">
                            <span class="start">*</span>
                            <span>补充说明：</span>
                            <el-input
                            type="textarea"
                            :rows="4"
                            
                            v-model="form.business_addition_desc"
                            ></el-input>
                        </el-form-item>    
                        <el-form-item
                            :label-width="formLabelWidth"
                            prop="sign_url">
                            <span class="start">*</span>
                            <span>签约地址，请用微信app打开：</span>
                            <el-input
                                v-model="form.sign_url"
                                autocomplete="off"
                            ></el-input>
                            <el-button size="mini" @click="copyUrl(form.sign_url)" type="primary" class="fuzhi">复制</el-button>
                        </el-form-item> 
                        <div class="main-title">汇款账户验证信息:</div>    
                        <el-form-item
                            :label-width="formLabelWidth"
                            v-if="form.account_validation"
                            >
                            <span class="start">*</span>
                            <span>付款户名：</span>
                            <el-input
                                v-model="form.account_validation.account_name"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            v-if="form.account_validation"
                            >
                            <span class="start">*</span>
                            <span>付款卡号：</span>
                            <el-input
                                v-model="form.account_validation.account_no"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item>   
                        <el-form-item
                            :label-width="formLabelWidth"
                            v-if="form.account_validation"
                            >
                            <span class="start">*</span>
                            <span>汇款金额：<span style="color:red;">(单位：分)</span></span>
                            <el-input
                                v-model="form.account_validation.pay_amount "
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            v-if="form.account_validation"
                            >
                            <span class="start">*</span>
                            <span>收款账户卡号：</span>
                            <el-input
                                v-model="form.account_validation.destination_account_number"
                                autocomplete="off"
                            
                            ></el-input>
                        </el-form-item>   
                        <el-form-item
                            :label-width="formLabelWidth"
                            v-if="form.account_validation"
                            >
                            <span class="start">*</span>
                            <span>收款账户名：</span>
                            <el-input
                                v-model="form.account_validation.destination_account_name"
                                autocomplete="off"
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            v-if="form.account_validation"
                            >
                            <span class="start">*</span>
                            <span>收款账户的开户银行名称：</span>
                            <el-input
                                v-model="form.account_validation.destination_account_bank"
                                autocomplete="off"
                            ></el-input>
                        </el-form-item>   
                        <el-form-item
                            :label-width="formLabelWidth"
                            v-if="form.account_validation"
                            >
                            <span class="start">*</span>
                            <span>收款账户的省市：</span>
                            <el-input
                                v-model="form.account_validation.city"
                                autocomplete="off"
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                            :label-width="formLabelWidth"
                            v-if="form.account_validation"
                            >
                            <span class="start">*</span>
                            <span>备注信息：</span>
                            <el-input
                                v-model="form.account_validation.remark"
                                autocomplete="off"
                            
                            ></el-input>
                        </el-form-item>   
                        <el-form-item
                            :label-width="formLabelWidth"
                            v-if="form.account_validation"
                            >
                            <span class="start">*</span>
                            <span>汇款截止时间：</span>
                            <el-input
                                v-model="form.account_validation.deadline"
                                autocomplete="off"
                                
                            ></el-input>
                        </el-form-item> 
                        <el-form-item
                        v-if="form.legal_validation_url!=''&&form.legal_validation_url!=undefined"
                            :label-width="formLabelWidth"
                            prop="legal_validation_url">
                            <span class="start">*</span>
                            <span>法人验证链接，请用微信app打开：</span>
                            <el-input
                                v-model="form.legal_validation_url"
                                autocomplete="off"
                            ></el-input>
                            <el-button size="mini" @click="copyUrl(form.legal_validation_url)" type="primary" class="fuzhi">复制</el-button>
                        </el-form-item>   
                        <el-form-item
                             v-if="form.audit_detail.reject_reason"
                            :label-width="formLabelWidth"
                            prop="audit_detail.reject_reason">
                            <span class="start">*</span>
                            <span>驳回原因：</span>
                            <br>
                            <span style="color:red;font-size:12px;text-indent:2em;">{{form.audit_detail.reject_reason}}</span>
                        </el-form-item>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
                 </div>
                </el-form>
            </div>
        </el-drawer>
    </div>
</template>
<script>
export default {
    data() {
        return {
            loading: false,
            show_dialog1:false,
            title:'',
            formLabelWidth: '80px',
            timer: null, 
            mainlist:[],
            Certificate:[],
            accountlist:[
                {label:'是',value:1},
                {label:'否',value:0}
            ],
            contactlist:[],
            banktype:[],
            banklist:[],
            addresslist:[],
            province_child:[],
            city_child:[],
            area_code:'',
            city_code:'',
            province_code:'',
            code_arr:{},    
            hidden:'hidden',        
            form: {
                store_id:'',
                out_request_no:'',
                organization_type: '',
                business_license_info: {
                    business_license_copy:'',
                    business_license_number:'',
                    merchant_name:'',
                    legal_person:'',
                    company_address:'',
                    business_time:''
                },
                organization_cert_info: {
                    organization_copy:'',
                    organization_time:'',
                    organization_number:''
                },
                id_doc_type:'',
                id_card_info: {
                    id_card_copy:'',
                    id_card_national:'',
                    id_card_name:'',
                    id_card_number:'',
                    id_card_valid_time:''
                },
                id_doc_info:{
                    id_doc_name:'',
                    id_doc_number:'',
                    id_doc_copy:'',
                    doc_period_end:'',
                },
                need_account_info: 1,
                account_info: {
                    bank_account_type:'',
                    account_name:'',
                    account_bank:'',
                    bank_address_code:'',
                    bank_branch_id:'',
                    bank_name:'',
                    account_number:''
                },
                contact_info: {
                    contact_type:'',
                    contact_name:'',
                    contact_id_card_number:'',
                    mobile_phone:'',
                    contact_email:'',
                    contact_id_doc_type:'IDENTIFICATION_TYPE_MAINLAND_IDCARD',
                    contact_id_doc_copy:[],
                    contact_id_doc_copy_back:[],
                    contact_id_doc_period_begin:'',
                    contact_id_doc_period_end:'',
                    business_authorization_letter:[],                    
                },
                sales_scene_info: {
                    store_name:'',
                    store_url:'',
                    store_qr_code:'',
                    mini_program_sub_appid:''
                },
                merchant_shortname:'',
                qualifications:'',
                business_addition_pics:'',
                business_addition_desc:'',
                sign_url:'',
                account_validation:{
                    account_name:'',
                    account_no:'',
                    pay_amount :'',
                    destination_account_number:'',
                    destination_account_name:'',
                    destination_account_bank:'',
                    city:'',
                    remark:'',
                    deadline:''
                },
                audit_detail:{
                   reject_reason:'',
                   param_name:''
                },
                legal_validation_url:'',
            },               
        };
	},
    methods: {
		show_dialog_fn1(data){
            this.getmember1(data);
            this.show_dialog1 = true;
            this.getbankaddress();
            this.getcontacttype();
            this.getbanklist();
            this.getbanktype();
            this.getCertificate();
            this.getmaintype();
        },    
        // 获取地区编码
        getbankaddress(){
            this.$http.post('/admin/bill/index.php?act=storeMchSetting&op=getRegions').then((res)=> {
                console.log(res);
                if (res.code == 1) {
                   this.addresslist = res.data;
                }else {
                    alert(res.msg);
                }
            })            
        },      
                // 获取超级管理员类型
        getcontacttype(){
            this.$http.post('/admin/bill/index.php?act=storeMchSetting&op=getContactTypes').then((res)=> {
                console.log(res);
                if (res.code == 1) {
                   for(var i in res.data){
                       res.data[i].value = res.data[i].value.toString();
                   }                    
                   this.contactlist = res.data;
                }else {
                    alert(res.msg);
                }
            })            
        }, 
       // 18种开户银行
        getbanklist(){
            this.$http.post('/admin/bill/index.php?act=storeMchSetting&op=getBanks').then((res)=> {
                console.log(res);
                if (res.code == 1) {
                   for(var i in res.data){
                       res.data[i].value = res.data[i].value.toString();
                   }                    
                   this.banklist = res.data;
                }else {
                    alert(res.msg);
                }
            })            
        },          
       // 获取账户类型
        getbanktype(){
            this.$http.post('/admin/bill/index.php?act=storeMchSetting&op=getBankAccountTypes').then((res)=> {
                console.log(res);
                if (res.code == 1) {
                   for(var i in res.data){
                       res.data[i].value = res.data[i].value.toString();
                   }                    
                   this.banktype = res.data;
                }else {
                    alert(res.msg);
                }
            })            
        },              
        // 获取主体类型
        getmaintype(){
            this.$http.post('/admin/bill/index.php?act=storeMchSetting&op=getOrganizationTypes').then((res)=> {
                console.log(res);
                if (res.code == 1) {
                   for(var i in res.data){
                       res.data[i].value = res.data[i].value.toString();
                   }
                   this.mainlist = res.data;
                }else {
                    alert(res.msg);
                }
            })            
        },       
        // 获取经营者/法人证件类型
        getCertificate(){
            this.$http.post('/admin/bill/index.php?act=storeMchSetting&op=getIdentificationTypes').then((res)=> {
                console.log(res);
                if (res.code == 1) {
                   for(var i in res.data){
                       res.data[i].value = res.data[i].value.toString();
                   }                    
                   this.Certificate = res.data;
                }else {
                    alert(res.msg);
                }
            })            
        },    
        //复制
        copyUrl(data){
            let url = data;
            let oInput = document.createElement('input');
            oInput.value = url;
            document.body.appendChild(oInput);
            oInput.select(); // 选择对象;
            console.log(oInput.value)
            document.execCommand("Copy"); // 执行浏览器复制命令
            this.$message({
            message: '已成功复制到剪切板',
            type: 'success'
            });
         },
        // 获取开户信息 编辑
        getmember1(id){
            console.log(id,'ididid');
            this.$http.post('/admin/bill/index.php?act=storeMch&op=mchDetail&store_id='+id).then((res)=> {
                console.log(res);
                if (res.code == 1) {
                    this.form.organization_type = res.data.organization_type;
                    this.form.business_license_info = res.data.business_license_info;
                    this.form.id_doc_type = res.data.id_doc_type;
                    this.form.id_doc_info = res.data.id_doc_info;
                    this.form.need_account_info = res.data.need_account_info==true?1:0;
                    this.form.account_info = res.data.account_info;
                    this.form.contact_info = res.data.contact_info;
                    this.form.sales_scene_info = res.data.sales_scene_info;
                    this.form.merchant_shortname = res.data.merchant_shortname;
                    this.form.qualifications = res.data.qualifications;
                    this.form.business_addition_pics = res.data.business_addition_pics;
                    this.form.business_addition_desc = res.data.business_addition_desc;
                    this.form.organization_cert_info = res.data.organization_cert_info;  
                    this.form.id_card_info = res.data.id_card_info;
                    this.form.sign_url=res.data.sign_url;
                    this.form.account_validation=res.data.account_validation;
                    this.form.audit_detail=res.data.audit_detail;
                    this.form.legal_validation_url=res.data.legal_validation_url;                 
                         //地区选择 
                    this.code_arr = res.data.account_info.bank_address_code_arr;   
                    if(this.code_arr!=''){
                    var length = this.code_arr.length;     
                    for(var j in this.addresslist){
                        if(this.code_arr[0]==this.addresslist[j].national_code){
                        this.province_child = this.addresslist[j].child
                        this.province_code = this.addresslist[j].region_name;
                        for(var i in this.province_child){
                            if(this.code_arr[1]==this.province_child[i].national_code){
                               this.city_code = this.province_child[i].region_name;
                               if(length>2){
                                 this.city_child = this.province_child[i].child;
                                //form.account_info.bank_address_code = this.code_arr[2];
                                   for(var k in this.city_child){
                                       if(this.code_arr[3] == this.city_child[k]){
                                           this.form.account_info.bank_address_code = this.city_child[k].region_name;
                                       }
                                   }
                               }
                            }
                        }
                    
                    }
                    }  
                  }
                    //图片              
                }else {
                    alert(res.msg);
                }
            })            
        },        
        handleClose1(done) {
			//done 用于关闭 Drawer
            if (this.loading) {
                return;
            }
            this.$confirm('确定要关闭表单吗？')
                .then(_ => {
                    done();
                    // this.form=[];
                    this.form.organization_type = '';
                    this.form.business_license_info = {};
                    this.form.id_doc_type = '';
                    this.form.id_doc_info = {};
                    this.form.need_account_info =1;
                    this.form.account_info = {};
                    this.form.contact_info = {
                        contact_id_doc_type:'IDENTIFICATION_TYPE_MAINLAND_IDCARD'
                    };
                    this.form.sales_scene_info = {};
                    this.form.merchant_shortname = '';
                    this.form.qualifications = '';
                    this.form.business_addition_pics = '';
                    this.form.business_addition_desc = '';
                    this.form.organization_cert_info = {};  
                    this.form.id_card_info = {};    
                    this.province_child={};
                    this.city_child={};
                    this.area_code='';
                    this.city_code='';
                    this.province_code=''; 
                    this.code_arr=[];    
                          //重置表单
                    // this.$refs.form.resetFields();
                    //重置表单验证
                    this.$refs.form.clearValidate();           
                })
                .catch(_ => {

                 });
        },          
    }
};
</script>
<style lang="scss" scoped>
.main-title{
    margin:10px 0px 10px 60px;
    font-weight: 600;
}
.local-hide{
    display: none;
}
.hidden{
    display: none;
}
#form{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
#form>div{
    width: 45%;
}
// .head-box{
//     overflow: scroll;
// }
.el-form-item{
    span{
        margin-top: 5px;
    }
    .rules-span{
      display: none;
    }
}
.rules-member1{
    position: absolute;
    // left: 430px;
    width: 100px;
    top: 35px;
    color: #F56C6C;
}
// .rules-member >>> .el-input__inner {
.rules-member /deep/.el-input__inner{
    border: 1px solid #F56C6C;
}
/deep/.el-drawer__body{
    overflow-y:auto ;
    padding-bottom: 30px;
}
.el-form-item__content{
    line-height: 30px;
}
#el-drawer__title{
    padding-bottom: 10px;
}
#el-drawer__header {
    margin-bottom: 15px;
}
span{
    color: #606266;
}
span.start{
    color: red;
}
.addstore {
  .el-input,
  .el-select,
  .el-cascader,
  .el-textarea {
    width: 300px;
    display: block;
  }
}
.icon-image{
    position: absolute;
    left: 340px;
    top: 30px;
    width: 15px;
    height: 15px;
    cursor: pointer;
    img{
        width: 15px;
    }
}
.prompt-icon{
    display: none;
    position: absolute;
    width: 300px;
    font-size: 10px;
    line-height: 20px;
    z-index: 999;
    background: #000;
    color: #fff;
    opacity: 0.8;
    text-indent: 2em;
    padding: 5px;
}
.icon-image:hover .prompt-icon{
    display: block;
}
.fuzhi{
    position:absolute;
    left: 320px;
    top: 26px;
}
</style>